# Sample Makefile for fit3094

PROJECT= pirateFleet
SOURCES=StudentAIControllerExample.cpp PowerfulAIControllerExample.cpp GL_routines.cpp Globals.cpp Gold.cpp graphicsExtra.cpp \
GridCell.cpp main.cpp Sea.cpp ShipBase.cpp AIController.cpp SimpleVector.cpp
OBJECTS=StudentAIControllerExample.o PowerfulAIControllerExample.o GL_routines.o Globals.o Gold.o graphicsExtra.o \
GridCell.o main.o Sea.o ShipBase.o AIController.o SimpleVector.o

CPP=g++
CFLAGS=-ansi -pedantic -Wall

#Uncomment the following line for compiling on a Macintosh OSX
#LIBS =-framework GLUT -framework OpenGL

#Comment out the following line for compiling on a Macintosh OSX
LIBS=-lGL -lglut

$(PROJECT): $(OBJECTS)
	$(CPP) -O2 -g $(OBJECTS) -o $(PROJECT) $(LIBS)
	@echo Finished Compiling

$(OBJECTS): $(SOURCES)
	@echo Compiling
	$(CPP) -O2 $(CFLAGS) -g -c $(SOURCES)

clean:
	@echo Deleting $(OBJECTS) $(PROJECT)
	rm -f $(PROJECT) $(OBJECTS)
